import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createMemoryHistory, createRouter } from 'vue-router'
var route=[{
    path:"/",
    component: () => import("./components/Manager.vue")
}];
var router=createRouter({
    history:createMemoryHistory(),
    routes:route
}
);
import { zhCn, zhTw } from 'element-plus/es/locales.mjs'
var route = [{
    path: "/",
    component: () => import("./components/Manager.vue"),
    redirect:"home",
    children:[
    {
        path:"userManager",
        name:"userManager",
        component:()=>import("./components/userView/UserManager.vue")
    },
    {
        path:"home",
        component:()=>import("./components/HomePage.vue")
    },

    ]
}];
var app=createApp(App)
app.use(router)
app.use(ElementPlus,{local:zhTw})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)}
app.mount('#app')
